public class Test {
    public static void main(String[] args) {
        MyArraylist myArraylist=new MyArraylist();
        myArraylist.add(1);
        myArraylist.add(2);
        myArraylist.display();

        myArraylist.add(2,3);
        myArraylist.add(3,4);
        myArraylist.display();

        boolean art =myArraylist.contains(1);
        System.out.println(art);

        int x=myArraylist.indexOf(2);
        System.out.println(x);

       int a=myArraylist.get(3);
        System.out.println(a);

        myArraylist.set(3,5);
        myArraylist.display();

        myArraylist.remove(1);
        myArraylist.display();

        int lenth =myArraylist.size();
        System.out.println(lenth);

        myArraylist.display();

        myArraylist.clear();
        myArraylist.display();
    }
}
